package com.hawk.eye.server.domain.po;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.hawk.eye.framework.core.domain.api.CommonEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
import java.util.Date;

/**
 *
 * @author salad
 * @date 2023-10-23
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("hawk_eye_repair_log")
public class RepairApiLog extends CommonEntity {

    private static final long serialVersionUID = 1L;

    private Long id;

    private Long repairApiId;

    private Long execUser;

    private Integer execSuccessful;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime execTime;

    private Integer reqType;

    private String reqUri;

    private String reqHeaders;

    private String reqParams;

    private String reqBody;

    private String execResult;

    private Long execCost;

}
